/*
 *           佛曰:
 *                   写字楼里写字间，写字间里程序员；
 *                   程序人员写程序，又拿程序换酒钱。
 *                   酒醒只在网上坐，酒醉还来网下眠；
 *                   酒醉酒醒日复日，网上网下年复年。
 *                   但愿老死电脑间，不愿鞠躬老板前；
 *                   奔驰宝马贵者趣，公交自行程序员。
 *                   别人笑我忒疯癫，我笑自己命太贱；
 *                   不见满街漂亮妹，哪个归得程序员？
 *
 * @Descripttion:
 * @version:
 * @Date: 2022-03-18 17:51:07
 * @LastEditors: huzhushan@126.com
 * @LastEditTime: 2022-03-23 16:50:52
 * @Author: huzhushan@126.com
 * @HomePage: https://huzhushan.gitee.io/vue3-element-admin
 * @Github: https://github.com/huzhushan/vue3-element-admin
 * @Donate: https://huzhushan.gitee.io/vue3-element-admin/donate/
 */

const root = {
  path: '/account/shopping',
  component: () => import('@/views/_project/account/shopping/index'),
  name: 'Shopping',
  meta: {
    title: '商城',
    icon: 'shopping',
  },
}
const detail = {
  path: '/account/shopping/product/:id',
  component: () => import('@/views/_project/account/shopping/detail'),
  name: 'ShoppingDetail',
  hidden: true,
  meta: {
    title: '产品详情',
    parent: root,
    activeMenu: '/account/shopping',
  },
}
export default [
  root,
  detail,
  {
    path: '/account/shopping/pay/:id',
    component: () => import('@/views/_project/account/shopping/pay'),
    name: 'ShoppingPay',
    hidden: true,
    meta: {
      title: '订单支付',
      parent: detail,
      activeMenu: '/account/shopping',
    },
  },
  {
    path: '/account/order',
    component: () => import('@/views/_project/account/order/index'),
    name: 'MyOrder',
    meta: {
      title: '我的订单',
      icon: 'el-icon-tickets',
    },
  },
  {
    path: '/account/recharge',
    component: () => import('@/views/_project/account/recharge/index'),
    name: 'Recharge',
    meta: {
      title: '充值',
      icon: 'money',
    },
  },
  {
    path: '/account/finance',
    component: () => import('@/views/_project/account/finance/index'),
    name: 'Finance',
    meta: {
      title: '财务记录',
      icon: 'money-log',
    },
  },

  {
    path: '/account/notice',
    component: () => import('@/views/_project/account/notice/index'),
    name: 'Notice',
    meta: {
      title: '通知',
      icon: 'el-icon-message-solid',
    },
  },
  {
    path: '/account/member',
    component: () => import('@/views/_project/account/member/index'),
    name: 'Member',
    meta: {
      title: '成员管理',
      icon: 'member',
    },
  },
  {
    path: '/account/password',
    component: () => import('@/views/_project/account/member/password'),
    name: 'Password',
    meta: {
      title: '修改密码',
      icon: 'el-icon-lock',
    },
  },
  {
    path: '/account/profile',
    component: () => import('@/views/_project/account/profile/index'),
    name: 'Profile',
    meta: {
      title: '账号信息',
      icon: 'el-icon-user-solid',
    },
  },
  {
    path: '/account/operation',
    component: () => import('@/views/_project/account/operation/index'),
    name: 'Operation',
    meta: {
      title: '操作记录',
      icon: 'operate',
    },
  },
  {
    path: '/account/feedback',
    component: () => import('@/views/_project/account/feedback/index'),
    name: 'Feedback',
    meta: {
      title: '工单',
      icon: 'gongdan',
    },
  },
]
